package com.asl.website.cooperationDetailImg.service.impl;

import java.util.Collections;
import java.util.List;

import com.asl.website.cooperationDetailImg.domain.CooperationDetailImgListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.cooperationDetailImg.mapper.CooperationDetailImgMapper;
import com.asl.website.cooperationDetailImg.domain.CooperationDetailImg;
import com.asl.website.cooperationDetailImg.service.ICooperationDetailImgService;

/**
 * 合作网络图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class CooperationDetailImgServiceImpl implements ICooperationDetailImgService 
{
    @Autowired
    private CooperationDetailImgMapper cooperationDetailImgMapper;

    /**
     * 查询合作网络图片
     * 
     * @param imgId 合作网络图片主键
     * @return 合作网络图片
     */
    @Override
    public CooperationDetailImg selectCooperationDetailImgByImgId(Long imgId)
    {
        return cooperationDetailImgMapper.selectCooperationDetailImgByImgId(imgId);
    }

    /**
     * 查询合作网络图片列表
     * 
     * @param cooperationDetailImg 合作网络图片
     * @return 合作网络图片
     */
    @Override
    public List<CooperationDetailImg> selectCooperationDetailImgList(CooperationDetailImg cooperationDetailImg)
    {
        return cooperationDetailImgMapper.selectCooperationDetailImgList(cooperationDetailImg);
    }

    /**
     * 新增合作网络图片
     * 
     * @param cooperationDetailImg 合作网络图片
     * @return 结果
     */
    @Override
    public int insertCooperationDetailImg(CooperationDetailImg cooperationDetailImg)
    {
        return cooperationDetailImgMapper.insertCooperationDetailImg(cooperationDetailImg);
    }

    /**
     * 修改合作网络图片
     * 
     * @param cooperationDetailImg 合作网络图片
     * @return 结果
     */
    @Override
    public int updateCooperationDetailImg(CooperationDetailImg cooperationDetailImg)
    {
        return cooperationDetailImgMapper.updateCooperationDetailImg(cooperationDetailImg);
    }

    /**
     * 批量删除合作网络图片
     * 
     * @param imgIds 需要删除的合作网络图片主键
     * @return 结果
     */
    @Override
    public int deleteCooperationDetailImgByImgIds(Long[] imgIds)
    {
        return cooperationDetailImgMapper.deleteCooperationDetailImgByImgIds(imgIds);
    }

    /**
     * 删除合作网络图片信息
     * 
     * @param imgId 合作网络图片主键
     * @return 结果
     */
    @Override
    public int deleteCooperationDetailImgByImgId(Long imgId)
    {
        return cooperationDetailImgMapper.deleteCooperationDetailImgByImgId(imgId);
    }

    /**
     * 查询合作网络图片列表-列表
     * @return 解雇
     */
    @Override
    public List<CooperationDetailImgListVO> listCooperationImg() {
        return cooperationDetailImgMapper.listCooperationImg();
    }
}
